<template>
  <div>
    <el-button @click="submit">触发input事件</el-button></div>
</template>

<script>
export default {
  name: 'CompInputTest',
  props: {
    value: String
  },
  watch: {
    value (newValue) {
      console.log(newValue)
    }
  },
  methods: {
    submit () {
      this.$emit('input', 'input事件被触发')
    }
  }
}
</script>

<style scoped>

</style>
